<template>
  <el-card class="category">
    <div class="top">
      <div>分类销售排行</div>
      <div>
        <el-radio-group size="small" fill="red">
          <el-radio-button label="品类" />
          <el-radio-button label="商品" />
        </el-radio-group>
      </div>
    </div>

    <CategoryChart />
  </el-card>
</template>

<script lang="ts">
export default {
  name: "CategoryRank",
};
</script>

<script lang="ts" setup>
import CategoryChart from "./CategoryChart";
</script>

<style scoped>
.category {
  margin-top: 20px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid gray;
  padding: 0 20px 20px 20px;
  height: 40px;
}
</style>
